<template>
  <div>
    <li class="dropdown-option" :class="{ 'is-disable': disabled }">
      <slot></slot>
    </li>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
})
</script>

<style>
.dropdown-option.is-disable * {
  color: gray !important;
  pointer-events: none;
  background-color: transparent;
}
</style>
